<?php

namespace IDock\Insurance\DBIC\Response;

use IDock\Http\Response;
use IDock\Printer\ProposalStatusPrinter;

class ProposalStatusUWResponse extends AllDBICResponse
{
    private $UwNotion;

    public function printerInit(): Response
    {
        $list = $this->getRecords('0',[])['callEdbicQueryUwNotionResUwNotionDtos'] ?? [];

        foreach ($list as $value) {
            $this->UwNotion .= $value['handlText'] ?? '';
        }

        return $this;
    }

    public function getUnderwrite()
    {
        return $this->UwNotion;
    }
}
